import pandas as pd
import sqlite3
import os

# 定位到项目根目录
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# 加载新规则csv
df = pd.read_csv(f'{root_path}/rule/MIA_RULE_ITEM_V1.csv')
df.to_sql('your_table', sqlite3.connect('test.db'), if_exists='replace', index=False)